package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 微信支付缓存
 */
@Getter
@Setter
@Document(collection = "wechat_pay_cache")
public class WechatPayCache extends EntityBase {
    /**
     * 订单号
     */
    @Indexed(unique = true)
    private String orderNo;
    /**
     * 类型,parent:父订单号,oid:子订单号
     */
    private String type;
    /**
     * 业务类型,membership:会员,ca:证书,mix:混合(会员+证书),item:文创
     */
    private String bizType;
    /**
     * 状态,默认为否
     */
    private Boolean status = Boolean.FALSE;
    /**
     * 通知时间
     */
    private Date notifyTime;
}
